<template>
  <router-view/>
</template>

<script>
import {provide} from "vue"//从vue中解构provide
import * as echarts from "echarts"
import axios from "axios"

//设置基准路径
axios.defaults.baseURL = "http://localhost:8888"

export default {
  setup() {
    provide("echarts",echarts)//名字 传递的内容 在App里面把echarts传递到所有的子组件当中
     provide("axios",axios)
     
  }
}
</script>
<style lang="less">
body {
  background: url("~@/assets/bg.jpg") top center no-repeat;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box //告诉浏览器解析的时候边框 外边距包含在width里面
}

</style>
